
package com.xxx.yuedong.campaign.service.impl;

import com.xxx.yuedong.campaign.db.dao.ScheduleDao;
import com.xxx.yuedong.campaign.pojo.Schedule;
import com.xxx.yuedong.campaign.service.ScheduleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;

@Service
public class ScheduleServiceImpl implements ScheduleService {

    @Resource(name = "schedule")
    private ScheduleDao scheduleDao;

    @Override
    public int insert(Schedule schedule) {
        int rows = scheduleDao.insert(schedule);
        return rows;
    }

    @Override
    public ArrayList<HashMap> searchPlanByDate(HashMap param) {
        ArrayList<HashMap> list = scheduleDao.searchPlanByDate(param);
        return list;
    }
}
